wayland: Keep the last cursor on leave, try to restore it on enter
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 1 Sep 2014 16:53:00 +0000 (18:53 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 1 Sep 2014 18:46:29 +0000 (20:46 +0200)
commit2c71b8f5991c98d3beb2df2f19ea2edad52e858c
tree2d64c52709b86cbc58716ed3e32d2c7ee8473872
parenta0abdbbdd6a83db2a51fcd390472f177436b35ca
wayland: Keep the last cursor on leave, try to restore it on enter

On DnD, pointer_handle_leave may be triggered without the pointer actually
leaving the window, and pointer_handle_enter() happening after intra-window
DnD won't actually manage to update the cursor (it does nothing directly,
and to the upper layers the cursor is still the same and consistent, so no
attempt will happen).

To fix this, keep the pointer cursor on leave, and ensure it is updated
on enter. The pointer cursor will be updated to any current new one through
the enter/motion events generated if it needs be.

https://bugzilla.gnome.org/show_bug.cgi?id=735831
gdk/wayland/gdkdevice-wayland.c